package com.ff.xyh.feign.client.dictionary;

import com.ff.xyh.common.entity.dictionary.RestrictedStatus;
import com.ff.xyh.common.entity.result.ResultMessage;
import com.ff.xyh.common.entity.result.ResultObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @Auther FF
 * @Date 2023年 05月 25日
 * @Time 01:47
 */

@FeignClient(value = "consumer-dictionary", contextId = "RestrictedStatusClient")
@RequestMapping("/dictionary")
public interface RestrictedStatusClient {

    @GetMapping("get-restricted-status-all")
    ResultObject getAllRestrictedStatus() ;

    @GetMapping("get-restricted-status-id")
    ResultObject getRestrictedStatusById(
            @RequestParam(name = "id") Integer id) ;

    @GetMapping("delete-restricted-status-id")
    ResultObject deleteRestrictedStatusById(
            @RequestParam(name = "id") Integer id) ;

    @PostMapping("insert-restricted-status")
    ResultObject insertRestrictedStatus (
            @RequestBody RestrictedStatus restrictedStatus) ;

    @PostMapping("update-restricted-status")
    ResultObject updateRestrictedStatus(
            @RequestBody RestrictedStatus restrictedStatus) ;

}
